package org.xiong.disk.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xiong.disk.bean.DownloadRecord;
import org.xiong.disk.mapper.DownloadRecordMapper;
import org.xiong.disk.service.DownloadRecordService;

import java.util.List;

@Service
public class DownloadRecordServiceImpl implements DownloadRecordService {

    @Autowired
    DownloadRecordMapper downloadRecordMapper;

    @Override
    public int insertByDownloadRecord(DownloadRecord downloadRecord) {
        return downloadRecordMapper.insertRecord(downloadRecord);
    }

    @Override
    public List<DownloadRecord> getDownRecord(String phone) {

        return downloadRecordMapper.getDownRecordByPhone(phone);
    }
}
